package com.hxl.tech.gateway.common.constant;


public enum Result {

    /**
     * 请求响应Code
     */
    OK(200, "请求成功"),
    FAIL(-1, "系统异常，请联系管理员"),
    E10001(10001, "空指针异常"),
    E10002(10002, "不支持的请求方式"),
    E10003(10003, "请求主体不可读"),
    E10004(10004, "不支持的参数类型"),
    E10005(10005, "请求参数类型不符合"),
    E10006(10006, "请求不合法"),
    E10007(10007, "主键ID不存在"),
    E10008(10008, "业务校验失败"),
    E10009(10009, "用户登录失败"),
    E10010(10010, "当前用户角色无权限"),
    E10011(10011, "数据主体加密异常"),
    E10012(10012, "数据主体解密异常"),
    E10013(10013, "请求接口版本格式错误"),
    E10014(10014, "应用未注册"),
    E10015(10015, "应用未激活或禁用中"),
    E10016(10016, "接口不存在"),
    E10017(10017, "网关未配置共享开放平台请求地址"),
    E10018(10018, "用户手机号已存在"),
    E10019(10019, "短信验证码不匹配"),
    E10020(10020, "短信验证码已失效，请重新发送"),
    E10021(10016, "接口未授权"),
    E20001(20001, "请求执行失败"),
    ;

    private int code;
    private String msg;

    Result(int c, String m) {
        code = c;
        msg = m;
    }

    public String getMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }

}

